package com.example.warehouse.bus.pojo.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;


/**
 * @author 欧胤
 * @version 1.0
 * @description: TODO
 * @date 2023/6/30 17:19
 */
@Data
@TableName("bus_sales")
public class BusSales implements Serializable {
    /**
     * 数据ID-销售表
     */
    @ExcelProperty(value = "数据ID", index = 0)
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /**
     * 顾客ID
     */
    @TableField("customer_id")
    @ExcelProperty(value = "顾客ID", index = 1)
    private Long customerId;

    /**
     * 商品ID
     */
    @ExcelProperty(value = "商品ID", index = 2)
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 操作员ID
     */
    @ExcelProperty(value = "操作员ID", index = 3)
    @TableField("operate_person_id")
    private Long operatePersonId;

    /**
     * 销售数量
     */
    @ExcelProperty(value = "销售数量", index = 4)
    @TableField("number")
    private Integer number;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注", index = 5)
    @TableField("description")
    private String description;

    /**
     * 售出价格
     */
    @ExcelProperty(value = "售出价格", index = 6)
    @TableField("sale_price")
    private BigDecimal salePrice;

    /**
     * 支付类型
     */
    @ExcelProperty(value = "支付类型", index = 7)
    @TableField("pay_type")
    private String payType;

    /**
     * 数据创建时间
     */
    @ExcelProperty(value = "数据创建时间", index = 8)
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    /**
     * 数据最后修改时间
     */
    @ExcelProperty(value = "数据最后修改时间", index = 9)
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    /**
     * 审批状态
     */
    @TableField("approval_status")
    private Integer approval_status;

    /**
     * 是否存活
     */
    @TableField("en_able")
    private Integer enAble;
}
